<?php
$style = 'border:1px solid #C6D0D9;background-color:#E1EBF4';//info
if($infotype == 'suc')//success
{
	$style = 'border:1px solid #D4DAB8;background-color:#E6ECC6';
}
if($infotype == 'err')
{
	$style = 'border:1px solid #E2C6C5;background-color:#F8E3E0';
}

if(!is_array($info)) $info = array($info);
?>
<div id="container" class="clear">
	<div style="margin:20px auto;width:350px;color:#333;padding:15px;font-size:12px;<?php echo $style; ?>">
		<?php foreach($info as $val){
			echo '<p>'.$val.'</p>';
		}
		?>
	</div>
</div>
<script type="text/javascript">
setTimeout('redirect()',2000);
function redirect()
{
	window.location = '<?php echo $url; ?>';
}
</script>
